package com.jinsilu.freight.http.request;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestHost;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;
import com.jinsilu.freight.other.MTLConstants;

/**
 * 获取公共订单列表（货源大厅）
 *
 * @author yangyang
 * @time 2020-11-20 12:47
 */
public class GetPublicOrderListApi implements IRequestApi, IRequestType {

    private String pageNum;
    private String pageSize;
    private String cargoOwnerName;
    private String transportStartAddr;
    private String transportEndAddr;

    @Override
    public String getApi() {
        return "api/order/list";
    }

    @Override
    public BodyType getType() {
        return BodyType.FORM;
    }

    public GetPublicOrderListApi setPageNum(String pageNum) {
        this.pageNum = pageNum;
        return this;
    }

    public GetPublicOrderListApi setPageSize(String pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    public GetPublicOrderListApi setCargoOwnerName(String cargoOwnerName) {
        this.cargoOwnerName = cargoOwnerName;
        return this;
    }

    public GetPublicOrderListApi setTransportStartAddr(String transportStartAddr) {
        this.transportStartAddr = transportStartAddr;
        return this;
    }

    public GetPublicOrderListApi setTransportEndAddr(String transportEndAddr) {
        this.transportEndAddr = transportEndAddr;
        return this;
    }
}
